package com.tanhua.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.manage.domain.AnalysisByDay;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AnalysisMapper extends BaseMapper<AnalysisByDay> {

    @Select("SELECT SUM(`num_active`) FROM `tb_analysis_by_day` a WHERE record_date BETWEEN  #{startDate} AND #{endDate}")
    long findNumActiveByDate(@Param("startDate") String startDate,@Param("endDate")  String endDate);







}
